home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / isc / defs next >
Text File  |  1994-08-01  |  9KB  |  320 lines

  1. #    $Header: /usr/people/sam/fax/port/isc/RCS/defs,v 1.2 1994/04/11 16:30:15 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1993, 1994 Sam Leffler
  6. # Copyright (c) 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a Intel 386 PC
  27. # under ISC4.0 using gcc 2.5.8 and libg++2.5.3
  28. #
  29. # TARGET:    isc
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/sh
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed for ISC
  39. #
  40. PORT    = ${DEPTH}/port/isc
  41. GENERIC    = ${DEPTH}/port/generic
  42. #
  43. # Basic tools used in the build process.
  44. #
  45. C++    = /usr/gnu/bin/g++
  46. CC    = /usr/gnu/bin/gcc
  47.  
  48. NAWK    = /usr/gnu/bin/awk
  49. INSTALL    = sh ${PORT}/install.sh
  50. MKDEPEND= ${GENERIC}/mkdepend
  51. AR    = ar
  52. RANLIB    = echo
  53. SED    = /usr/gnu/bin/sed
  54.  
  55. #
  56. # AR options for creating/updating an archive
  57. #
  58. AROPTS=    crs
  59.  
  60. #
  61. # Special options for lptops compilation (yech).
  62. #
  63.  
  64. #
  65. # We wants System V-style getty support.
  66. #
  67. SYSGETTY=GettySysV.c++
  68.  
  69. #
  70. # and we want System V-style UUCP lock support.
  71. #
  72. UUCP_LOCKDIR=/usr/spool/uucp
  73. UUCP_LOCKTYPE=0
  74. UUCP_LOCKMODE=0444
  75.  
  76. #
  77. # Location of Adobe Font Metrics for lptops.
  78. #
  79. AFMDIR=/usr/gnu/lib/ghostscript/fonts
  80.  
  81. #
  82. # PostScript imager for server.  PSPACKAGE is one of:
  83. #
  84. # dps    for Display Postscript
  85. # gs    for Ghostscript
  86. #
  87. # and PSIMAGER is the pathname of the binary executable.
  88. #
  89. PSPACKAGE=gs
  90. PSIMAGER=/usr/gnu/bin/gs
  91.  
  92. #
  93. # Mail program for sending notification messages.
  94. #
  95. SENDMAIL=/usr/lib/sendmail
  96.  
  97. #
  98. # Default optimizer and prototype options
  99. #
  100. OPTIMIZER= -O -m486 -g
  101. PROTOTYPES=
  102. CVERSION= -posix -D__ANSI_CPP__ -D_SYSV3 -B/usr/gnu/lib/gcc-lib/ -D__sys_time_h_recursive
  103. C++FILE=-x c++
  104.  
  105. # default definitions for programs--overide them as desired
  106. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} ${LIBPORT}
  107. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  108. #
  109. # Override this definition to eliminate shared library use.
  110. #
  111. SHDLIBC=
  112.  
  113. #
  114. # Libraries that may vary from machine to machine (especially if
  115. # you use GNU GCC instead of AT&T C++).
  116. #
  117. MACHDEPLIBS=-lg++ -linet -lx
  118. #
  119. # You must have v3.0 or newer of the TIFF library.  If
  120. # you already have it installed, or if you have version 3.0
  121. # or newer of InterViews installed (which includes the TIFF
  122. # library), you can point these to those places.  Otherwise,
  123. # you can just use the code provided here.
  124. #
  125. TIFF=    ${DEPTH}/libtiff
  126. LIBTIFF=${TIFF}/libtiff.a
  127. #
  128. # If you already have InterViews 3.0 or newer installed,
  129. # define these to be something like:
  130. #
  131. #IV=    /usr/include
  132. #LIBIV=    /usr/lib/libIV.a
  133. # Otherwise you can just use the subset of classes used by
  134. # the fax software and collected here in a hacked-up library.
  135. #
  136. IV=    ${DEPTH}/iv
  137. LIBIV=    ${IV}/libivhack.a
  138. # random utility functions and classes
  139. UTIL=    ${DEPTH}/util
  140. LIBUTIL=${UTIL}/libfaxutil.a
  141. LIBPORT=${PORT}/libport.a
  142.  
  143. #
  144. # Uid&Gid for installing server stuff.  Note that the server process
  145. # proper (/usr/etc/faxd or similar) must either run setuid root or
  146. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  147. # so that the fax server can participate in the UUCP locking scheme
  148. # and thereby implement tty line sharing (i.e. share the same line
  149. # and modem for both fax and data).
  150. #
  151. FAXUSER=uucp
  152. FAXGROUP=uucp
  153.  
  154. #
  155. # Directories where stuff gets placed:
  156. #
  157. # BIN        client-directed applications
  158. # LIBDATA    client-directed application library data files
  159. # LIBEXEC    client-directed application library executables
  160. # SPOOL        spooling area for servers
  161. # DOC        non-manual documentation
  162. # USRETC    place for servers (faxd & faxd.recv)
  163. #
  164. BIN=/usr/local/bin
  165. LIBDATA=/usr/local/lib/fax
  166. LIBEXEC=/usr/local/lib/fax
  167. DOC=/usr/local/lib/fax
  168. USRETC=/usr/local/lib/fax
  169.  
  170. SPOOL=/usr/spool/fax
  171. #
  172. # Manual-related controls:
  173. #
  174. # MAN        head of manual tree
  175. # MANAPP    subdirectory for stuff in BIN
  176. # MANSYS    subdirectory for server & server-related apps
  177. # MANFILES    subdirectory for file format info 
  178. # PAGEDIRT    temp files to remove on clean/clobber
  179. #
  180. MAN    =/usr/local/man
  181.  
  182. MANAPPS    = man1
  183. MANSYS    = man1
  184. MANFILES= man4
  185.  
  186. NROFF    = groff -Tascii
  187. COMPRESS= compress
  188.  
  189. MANCAPP    = ${CLIENTAPPS}
  190. MANCFILE= ${CLIENTFILES}
  191. MANSAPP    = ${SERVERAPPS}
  192. MANSFILE= ${SERVERFILES}
  193. PAGEDIRT=
  194.  
  195. # programs used during installation
  196. ECHO=    echo
  197. GREP=    grep
  198. RM=    rm
  199. PWD=    pwd
  200. CHROOT=    /etc/chroot
  201.  
  202. #
  203. # Definitions used by common rules.
  204. #
  205. COMMONRULES=${DEPTH}/rules
  206. COMMONTARGS= clobber clean rmtargets depend incdepend
  207.  
  208. #
  209. # C compiler flags are composed of variable (set on the command line),
  210. # local (defined in the makefile), and global (defined in this file)
  211. # parts, in that order.  This ordering is used so that variable or
  212. # locally specified include directories are searched before the globally
  213. # specified ones.
  214. #
  215. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  216.  
  217. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  218. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  219. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  220.  
  221. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  222. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  223. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  224.  
  225. GCOPTS=${OPTIMIZER} ${PROTOTYPES}
  226. GCDEFS=-Disc
  227. GCINCS=    -I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${TIFF}
  228. #
  229. # C++ flags are decomposed using the same hierarchy as C flags.
  230. #
  231. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  232.  
  233. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  234. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  235. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  236.  
  237. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  238. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  239. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  240.  
  241. GC++OPTS=${OPTIMIZER}
  242. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${GENERIC} -I${UTIL} -I${IV} -I${TIFF}
  243. GC++DEFS=-Disc
  244.  
  245. #
  246. # Loader flags, composed of library (-l's) and option parts, with
  247. # the libraries appearing last.  Both of these are divided into variable,
  248. # local, and global parts.  The composition of LDFLAGS is done in the
  249. # other "direction" from CFLAGS so that all the -L's, that are part of
  250. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  251. # Another benefit of segregating the libraries from the remaining of the
  252. # loader options is that the libraries alone can easily be given to
  253. # another program, e.g., lint.
  254. #
  255. # Notes:
  256. #   - If a program should not be linked with the shared version of libc,
  257. #     then its make file should override the setting of SHDLIBC with a
  258. #     line such as "SHDLIBC=".
  259. #
  260. LDFLAGS=${LDOPTS} ${LDLIBS}
  261.  
  262. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  263. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  264.  
  265. GLDOPTS=
  266. GLDLIBS=${SHDLIBC}
  267.  
  268. #
  269. # Convenient command macros that include the flags macros.
  270. #
  271. C++F=    ${C++} ${C++FLAGS}
  272. CCF=    ${CC} ${CFLAGS}
  273.  
  274. #
  275. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  276. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  277. # mkdepend option to this.  The other language's mkdepend variables try to
  278. # include their language's name in the variable names.  Unfortunately, a
  279. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  280. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  281. #
  282. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  283. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  284.  
  285. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  286. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  287. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  288.  
  289. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  290. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  291. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  292.  
  293. #
  294. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  295. # single-source programs using null suffix rules (e.g., .c:}.  This option
  296. # works for both C and C++ make depend.
  297. #
  298. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  299. #
  300. # MKDEPFILE is the name of the dependency database, included by rules.
  301. #
  302. MKDEPFILE=Makedepend
  303. #
  304. # CDEPFILES lists all C or cc-compiled source files that depend on header
  305. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  306. # dependencies computable by ${MKDEPENDC++}.
  307. #
  308. C++DEPFILES=${C++FILES}
  309. CDEPFILES=${CFILES}
  310. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  311.  
  312. #
  313. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  314. #
  315. INCLDIR    =/usr/gnu/lib/g++-include
  316.